import https from "@/utils/http/http";
import { BASE_URL, BASE_ADMIN_URL } from "@/utils/http/baseUrl";

/**
 * @method POST-后台登录
 * @param {String} username
 * @param {String} password
 */
export const sysUserLogin = (data) => https(`${BASE_URL}/api/sysUser/login`, data, "ApplicationPOST");

/**vv
 * * 注册模块相关接口
 */
/**
 * @method POST-邮箱注册
 * @param {String} email
 * @param {String} code
 * @param {String} pwd
 */
export const registerEmail = (data) => https(`${BASE_URL}/v1/register/email`, data, "ApplicationPOST");

/**
 * @method GET-获取用户信息
 */
export const getUserInfo = (data) => https(`${BASE_ADMIN_URL}/v1/user/info`, data, "GET");

/**
 * @method GET-获取用户信息
 */
export const appLogin = (data) => https(`${BASE_URL}/app/v1/api/login`, data, "ApplicationPOST");
